package com.cm.biz;

import com.cm.kits.EnvironmentToolkit;
import com.cm.kits.HashKits;
import lombok.extern.slf4j.Slf4j;

import java.nio.charset.StandardCharsets;

/**
 * @author: cm
 * @Date: 2023/2/21 16:48
 * @Description: 爬取客户信息
 */
@Slf4j
public final class BwCusTaskExcutor {

    /**
     * 运行实例名
     */
    private final String instanceID;
    /**
     * 本地执行 ip
     */
    private final String ip;

    public BwCusTaskExcutor(){

        // 构造唯一信息
        instanceID = "%s_java_rpa".formatted(HashKits.sha256(EnvironmentToolkit.getMac().getBytes(StandardCharsets.UTF_8)));
        ip = EnvironmentToolkit.getLocalIp();


    }
}
